package com.examination.service.integralModel;

import com.examination.dao.integralModel.CommodityDao;
import com.examination.entity.Commodity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CommodityService implements CommodityDao {
    @Autowired
    private CommodityDao commodityDao;

    @Override
    public int insertCommodity(Map map) {
        return commodityDao.insertCommodity(map);
    }

    @Override
    public int deleteCommodity(Map map) {
        return commodityDao.deleteCommodity(map);
    }

    @Override
    public int updateCommodity(Map map) {
        return commodityDao.updateCommodity(map);
    }

    @Override
    public List<Commodity> findCommodity(Map map) {
        return commodityDao.findCommodity(map);
    }

    @Override
    public long Total(Map map) {
        return commodityDao.Total(map);
    }

    @Override
    public Commodity findCommodityById(Map map) {
        return commodityDao.findCommodityById(map);
    }

    @Override
    public List<Commodity> selectCommodity(Map map) {
        return commodityDao.selectCommodity(map);
    }
}
